#while循环
from itertools import count

while True:
   sum=input('输入一个数：')
   if sum=='7':
      break
   print('继续输入数字')

sum = 0
for a in range(1,31):
   if a%5 != 0:
      continue
   sum+=a
print(sum)
#查找
a=[34,12,45,2,'tom','locy',[23,12,34],(64,12)]
print(a[-1])
print(a[4])
#添加
a.append(9)
print(a)
#插入
a.insert(2,'张三')
print(a)
#合并
b=['李四']
a.extend(b)
print(a)
#删除返回
del a[-5]
print(a.pop(-5))
#移除
a.remove(12)
print(a)
#清空
c=[23,34]
c.clear()
print(c)
#排序
a1=[3,4,2,5,1,7,6,9,8]
a1.sort()
print(a1)
a1.sort(reverse=True)
print(a1)
d=[23,12,53,75,24,243]
d1=sorted(d)
print(d1)
#获取长度
s='qwertyuio'
s1=len(s)
print(s1)

#输出1-10，跳过2和5
count=1
while count<=10:
   if count==2 or count==5:
      count+=1
      continue
   print(count,end=',')
   count +=1
print()
#1-100内的所有偶数
count=1
while count<=100:
   if (count%2) ==0:
      print(count,end=',')
   count += 1

print()
